.home-page {
  position: relative;
}

.search-bar {
  padding: 12px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.product-card {
  width: 155px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-info {
  padding: 8px;
}

.product-info h3 {
  font-size: 14px;
  margin: 0 0 8px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
}

.spec-section {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.price-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-price {
  font-size: 16px;
  color: #f44;
  font-weight: bold;
}

.original-price {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
}

.sales {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.image-box {
  width: 100%;
  height: 160px;
}

.loading-box {
  text-align: center;
}
.no-more-text {
  text-align: center;
  color: #666;
  padding: 16px 0;
  font-size: 14px;
  background: #f7f8fa;
}
/* 新增返回顶部按钮样式 */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 15px;
  z-index: 1000;
  background: rgba(255, 68, 68, 0.9);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s;
}
